public class Test{
    public static void main(String[] args){
        FizzBuzz();

}
    private static void FizzBuzz() {
        int number = 1;
        while (number <= 100) {
            String string = "";
            if(number%3 == 0)
            {
                string = string.concat("Fizz");
            }
            if(number%5 == 0)
            {
                string = string.concat("Buzz");
            }
            if(string.equals(""))
            {
                string = string.concat(Integer.toString(number));
            }
            print(string);
            number ++;
        }
    }
    private static void print(String fizz) {
        System.out.println(fizz);
    }
}